package com.oa.admin.entity;


import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;




import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 库存表
 * </p>
 *
 * @author syb123
 * @since 2019-01-22
 */
@Data
@TableName("admin_inventory")
@ApiModel(value="库存表")
public class Inventory extends Model<Inventory> {

        private static final long serialVersionUID = 1L;


        @ApiModelProperty(value="id")
        @TableId(value = "id", type = IdType.UUID)
                private String id;

        @ApiModelProperty(value="物品名称")
        private String itemName;

        @ApiModelProperty(value="品牌")
        private String brand;

        @ApiModelProperty(value="型号规格")
        private String typeSpecification;

        @ApiModelProperty(value="单位")
        private String unit;

        @ApiModelProperty(value="单价")
        private String unitPrice;

        @ApiModelProperty(value="预警数量")
        private String warningNumber;

        @ApiModelProperty(value="应存数量")
        private String shouldStockQuantity;

        @ApiModelProperty(value="现存数量")
        private String quantityHand;

        @ApiModelProperty(value="图片")
        private String itemImg;

        @ApiModelProperty(value="是否删除(1-已删除 2-未删除)")
        private Integer isDeleted;


@Override
protected Serializable pkVal() {
            return this.id;
        }

        }